package com.company.gobang.module.room.event;

import com.company.gobang.module.room.RoomConstant;
import xyz.noark.core.event.QueueEvent;

import java.io.Serializable;

/**
 * 房间开始事件
 *
 * @author 小流氓[176543888@qq.com]
 */
public class RoomStartEvent implements QueueEvent {

    private final int roomId;

    public RoomStartEvent(int roomId) {
        this.roomId = roomId;
    }

    public int getRoomId() {
        return roomId;
    }

    @Override
    public Serializable getQueueId() {
        return RoomConstant.SESSION_KEY_ROOM_QUEUE_ID;
    }
}
